word rank | frequency | n-gram |
---|---|---|
1 | 6834 | ا- |
2 | 6188 | م- |
3 | 5884 | د- |
4 | 5250 | و- |
5 | 3848 | ب- |
word rank | frequency | n-gram |
---|---|---|
1 | 1664 | او- |
2 | 1233 | را- |
3 | 972 | دا- |
4 | 908 | ور- |
5 | 821 | در- |
word rank | frequency | n-gram |
---|---|---|
1 | 306 | راو- |
2 | 305 | می- |
3 | 252 | کار- |
4 | 247 | است- |
5 | 210 | اود- |
word rank | frequency | n-gram |
---|---|---|
1 | 108 | عبدا- |
2 | 74 | محمد- |
3 | 63 | افغا- |
4 | 56 | نمی- |
5 | 54 | استا- |
word rank | frequency | n-gram |
---|---|---|
1 | 103 | عبدال- |
2 | 60 | افغان- |
3 | 46 | درلود- |
4 | 36 | څرګند- |
5 | 32 | برابر- |
The tables show the most frequent letter-N-grams at the beginning of words for N=1…5. Their frequency is count without multiplicity, otherwise the stopwords would dominate the tables.
As shown in the above example (German), word prefixes are clearly visible. In the above example, ver- and ein- are prefixes, and Sch- is not. At the end of a prefix we typically have a wide variety of possible continuations. Hence a prefix of length k will be prominent in the table for N=k, but typically not in the table for N=k+1. The prominent entries Schw- and Schl- for N=4 tell us that Sch- is no prefix.
Zipf’s diagram is plotted with both axis in logarithmic scale, hence we expect nearly straight lines. The graphs look more typical for larger N. Especially for N=3 we find only a small number of trigrams resulting in a sharp decay.
For a language unknown to the reader, the data can easily be used to see whether prefixes do exist and to find the most prominent examples.
For counting, only words with a minimum character length of 10 were considered.
Because only a word list is needed, the tables above can be generated from a relatively small corpus.
For N=3:
SELECT @pos:=(@pos+1), xx.* from (SELECT @pos:=0) r, (select count(*) as cnt, concat(left(word,3),"-") FROM words WHERE w_id>100 group by left(word,3) order by cnt desc) xx limit 5;
For more insight in a language, longer lists might be useful.
Is there a need for larger N
Most frequent word endings
Most frequent letter-N-grams
Number of letter-N-Grams at word beginnings
Number of letter-N-Grams at word endings